{extend name="./view/base/admin.html"}
{block name="body"}
<div class="card">
    <div class="card-header">
        <a href="{:url('cate_add')}" class="btn btn-sm btn-info">添加分类</a>
    </div>
    <div class="card-body">
        <div class="table-responsive">
            <table class="table table-bordered table-hover">
                <thead>
                    <tr>
                        <th>编号</th>
                        <th>分类名称</th>
                        <th>标识</th>
                        <th>添加时间</th>
                        <th>更新时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    {foreach $list as $v}
                    <tr>
                        <td>{$v.id}</td>
                        <td>{$v.name}</td>
                        <td>{$v.alias}</td>
                        <td>{$v.create_time}</td>
                        <td>{$v.update_time}</td>
                        <td>
                            <a href="{:url('cate_edit',['id'=>$v['id']])}" class="btn btn-xs btn-yellow">修改</a>
                            <button class="btn btn-xs btn-pink" @click="del({id:{$v.id}},'{:url('cate_del')}')">删除</button>
                        </td>
                    </tr>
                    {/foreach}
                </tbody>
            </table>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script>
    new Vue({
        el:'#content'
    })
</script>
{/block}